
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>


<rich:panel header="#{messages['create.partner.product.calendar.dtl']}">
	<h:panelGrid ><h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText></h:panelGrid>
	
	<t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	
		<h:outputText></h:outputText>
		<h:panelGroup>
		  	<h:outputText value="*" styleClass="standardText_Mandatory" /> 
			<h:outputText value="#{messages['instruction']}" styleClass="standardText_Instruction" />
		</h:panelGroup>
	    
	    <h:outputText></h:outputText>
		<t:message for="Name" styleClass="error"></t:message>
	    
		<h:panelGroup>
	    	<h:outputText value="*" styleClass="standardText_Mandatory" />	
		    <h:outputLabel for="Name" value="#{messages['name']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <h:panelGroup>
	    	<t:inputText id="Name" required="true" size="50" maxlength="50" styleClass="standardText" value="#{adminCalenderDtlMasterBean.calendarCategoryDtl.name}"></t:inputText>
	    </h:panelGroup>
 
	 
	    </t:panelGrid>
	    <t:panelGrid id="tday" columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
	    <h:outputText   ></h:outputText>
		<t:message for="day"  styleClass="error" ></t:message>
		
		<h:panelGroup >
	    	<h:outputText value="*"   styleClass="standardText_Mandatory" />	
		    <h:outputLabel for="day"   value="#{messages['day']}" styleClass="standardText_Label" />
	    </h:panelGroup>
	    <t:selectOneRadio  id="day"   layout="pageDirection" styleClass="standardText" value="#{adminCalenderDtlMasterBean.calendarCategoryDtl.day}" required="true">
				<%--<f:selectItem itemLabel="#{messages['sunday']}" itemValue="#{messages['sunday']}" />
				<f:selectItem itemLabel="#{messages['monday']}" itemValue="#{messages['monday']}" />
				<f:selectItem itemLabel="#{messages['tuesday']}" itemValue="#{messages['tuesday']}" />
				<f:selectItem itemLabel="#{messages['wednesday']}" itemValue="#{messages['wednesday']}" />
				<f:selectItem itemLabel="#{messages['thursday']}" itemValue="#{messages['thursday']}" />
				<f:selectItem itemLabel="#{messages['friday']}" itemValue="#{messages['friday']}" />
				<f:selectItem itemLabel="#{messages['saturday']}" itemValue="#{messages['saturday']}" />
				--%>
				<f:selectItems value="#{adminCalenderDtlMasterBean.calendarList}"/>
		</t:selectOneRadio>
		
		  </t:panelGrid>
	    <t:panelGrid columns="2" columnClasses="standardTable_ColumnLeft_20,standardTable_ColumnLeft_80" width="100%">
		<h:panelGroup></h:panelGroup>
		<h:panelGroup></h:panelGroup>
		
		<h:panelGroup></h:panelGroup>
		
		<t:panelGroup>
		   <t:panelGrid columns="2">
		   		<h:commandButton value="#{messages['create']}" styleClass="button" action="#{adminCalenderDtlMasterBean.createCategoryAction}"></h:commandButton>
			    <h:commandButton value="#{messages['back']}" styleClass="button" action="#{adminCalenderDtlMasterBean.navListAction}" immediate="true"></h:commandButton>
		   </t:panelGrid>
		</t:panelGroup>
	</t:panelGrid>

</rich:panel>